package com.guangdujs.kis.service.impl;

import java.util.List;

import com.guangdujs.common.annotation.DataSource;
import com.guangdujs.common.enums.DataSourceType;
import com.guangdujs.framework.datasource.DynamicDataSourceContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.guangdujs.kis.mapper.GdStockMapper;
import com.guangdujs.kis.domain.GdStock;
import com.guangdujs.kis.service.IGdStockService;

/**
 * 即时库存Service业务层处理
 * 
 * @author kis
 * @date 2022-11-02
 */
@Service
public class GdStockServiceImpl implements IGdStockService
{
    @Autowired
    private GdStockMapper gdStockMapper;

    /**
     * 查询即时库存列表
     */
    @Override
    public List<GdStock> selectGdStockList(GdStock gdStock)
    {
        List<GdStock> gdStockList = gdStockMapper.selectGdStockList(gdStock);
        return gdStockList;
    }

    /**
     * 产品品种总数
     */
    @Override
    public int selectGoodsClassNum(){
        return gdStockMapper.selectGoodsClassNum();
    }

    /**
     * 产品名称列表
     */
    @Override
    public List<String> selectGoodsNameList(){
        return gdStockMapper.selectGoodsNameList();
    }

}
